<div class="event_detail_info">
	<div class="__content clearfix">
		<div class="__col __title">
			资产信息
		</div>
		<div class="__col">
			<div class="__kv">
				<span class="__key">资产名称</span>
				<span class="__value" data-id="edName"></span>
			</div>
			<div class="__kv">
				<span class="__key">资产IP</span>
				<span class="__value" data-id="ipvAddress"></span>
			</div>
		</div>
		<div class="__col">
			<div class="__kv">
				<span class="__key">管控域</span>
				<span class="__value" data-id="sdomainName"></span>
			</div>
		</div>
	</div>

	<div class="__content clearfix">
		<div class="__col __title">
			发生时间和次数
		</div>
		<div class="__col">
			<div class="__kv">
				<span class="__key">最新发生时间</span>
				<span class="__value" data-id="enterDate"></span>
				<span class="__value"><a id="detailmore_btn">历史发生时间...</a></span>
			</div>
		</div>
	</div>

	<div class="__content clearfix">
		<div class="__col __title">
			故障事件信息
		</div>
		<div class="__col">
			<div class="__kv">
				<span class="__key">事件名称</span>
				<span class="__value" data-id="faultName"></span>
			</div>
			<div class="__kv">
				<span class="__key">事件类型</span>
				<span class="__value" data-id="className"></span>
			</div>
			<div class="__kv">
				<span class="__key">事件状态</span>
				<span class="__value" data-id="currentStatus"></span>
			</div>
		</div>
		<div class="__col">
			<div class="__kv">
				<span class="__key">事件描述</span>
				<span class="__value" data-id="faultModule"></span>
			</div>
			<div class="__kv">
				<span class="__key">事件等级</span>
				<span class="__value" data-id="faultLevel"></span>
			</div>
			<div class="__kv">
				<span class="__key">处理状态</span>
				<span class="__value" data-id="faultStatus"></span>
			</div>
		</div>
	</div>

	<div class="__content clearfix">
		<div class="__col __title">
			监控器信息
		</div>
		<div class="__col">
			<div class="__kv">
				<span class="__key">监控器名称</span>
				<span class="__value" data-id="monitorName"></span>
			</div>
		</div>
	</div>

	<div class="__content clearfix">
		<div class="__col __title">
			解决信息
		</div>
		<div class="__col">
			<div class="__kv">
				<span class="__key">恢复时间</span>
				<span class="__value" data-id="updateDate"></span>
			</div>
		</div>
		<div class="__col">
			<div class="__kv">
				<span class="__key">解决方案</span>
				<span class="__value" data-id="faultSolutions"></span>
			</div>
		</div>
	</div>
</div>

<script>
	$(document).ready(function (){
		//index_title_set("性能事件详情")

		var list_detail_header = [
									  {text: '首次发生时间',name: "enterDate"},
									  {text: '最新发生时间',name: "lastDate"},
									  {text: '更新时间',name: "updateDate"},
									  {text: '恢复时间',name: "recoveryDate"}
								 ];

		var index_param_obj =g_dialog.elDialogParam()
		um_ajax_get({
			url : "faultAlarmEvent/queryFaultEventDetail",
			paramObj : {faultNO:index_param_obj.faultNO},
			isLoad : true,
			maskObj : "body",
			successCallBack : function(data){
				$(".event_detail_info").umDataBind("render" ,data.faultAlarmStore[0]);
				console.log(data.faultAlarmStore[0])
				if(data.faultAlarmStore[0].monitorName == "" || data.faultAlarmStore[0].monitorName == null)
					$(".event_detail_info").find("[data-id=monitorName]").text("接口监控器");

				$("#detailmore_btn").click(function (){
					$.ajax({
						type: "GET",
						url: "module/event_alarm/perform_event_analy_tpl.html",
						success :function(data)
						{
							g_dialog.dialog($(data).find("[id=detailmore_template]"),{
								width:"800px",
								init:init,
								title : "性能事件历史发生时间",
								isDetail:true,
								top:"8%"
							});
						}
					});
					function init (el){
						g_grid.render(el.find('[id=table_in_query_detailmore]'),{
							header : list_detail_header,
							url : "faultAlarmEvent/queryFaultHisEventDetail",
							paramObj : {faultAlarmStore:{faultNO:index_param_obj.faultNO}},
							isLoad : true,
							maskObj : "body",
							allowCheckBox : false,
							hideSearch : true
						});

					}
				});
			}
		});
	})
</script>